package mypractice;

public class Work5 {
    public static void main(String[] args) {
        System.out.println("test");
    }

}

class Teacher{
    String name;
    int age;
    String gender;
    int teacherld;


    public void print(Teacher teacher){
        System.out.println(teacher.name);
        System.out.println(teacher.age);
        System.out.println(teacher.gender);
        System.out.println(teacher.teacherld);
    }

    public Teacher() {

    }

    public Teacher(String name) {
        this.name = name;
    }

    public Teacher(String name, int teacherld) {
        this.name = name;
        this.teacherld = teacherld;
    }

    public Teacher(String name, int age, String gender) {
        this.name = name;
        this.age = age;
        this.gender = gender;
    }

    public Teacher(String name, int age, String gender, int teacherld) {
        this(name,age,gender);
        this.teacherld = teacherld;
    }
}
